package cn.itsource.mapper;

import cn.itsource.domain.Goods;

import java.util.List;

public interface GoodsMapper {

    //查询所有数据
    List<Goods> findAll();

    //添加
    void add(Goods goods);

    //修改
    void  update(Goods goods);

    //删除
    void delete(int id);

    //根据id查询
    Goods findOne(int id);
}
